Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preventing apply and digest conflicts #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morfin
Copy link

@morfin morfin commented Mar 16, 2016

When I try to trigger the change event on phone field, I was getting an "$apply already in progress" issue. This fix prevents that. Not sure if this is the best approach though.

@mebibou
Copy link

mebibou commented May 5, 2016

You should make the change in the coffee file and then run grunt to compile in the releases folder.

Also, why just not doing if (!$scope.$$phase) ?

@vmeira
Copy link

vmeira commented Jun 22, 2017

Your solution is not considered the best approach. Might want to take a look at this: https://stackoverflow.com/questions/12729122/angularjs-prevent-error-digest-already-in-progress-when-calling-scope-apply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants